# coding: UTF-8
# @Date    ：2024/12/10 9:41 
# @File    : db_test.py
# :Author:  fum
from sqlalchemy import delete

from api.fm.models.system.config_model import User
from tests.test_base import box


db_manager = box.db_manager()

with db_manager.get_db_session() as session:
    # 创建删除所有用户的语句
    stmt = delete(User)

    # 执行删除操作
    session.execute(stmt)

    # 提交事务
    session.commit()

    print("All users deleted.")
